home *** CD-ROM | disk | FTP | other *** search
Wrap
SelectFile 1.2 by Frédéric RINALDI DESCRIPTION SelectFile provides a dialog allowing to choose a file (SFGetFile). Not anymore required with HC2.0 which includes this feature. SYNTAX SelectFile([<type1…[,type4]>][,<prompt>][,<default dir>]) PARAMETERS <type1…[,type4]> is a 1 to 4 items string for filtering the displayed files according to their type. <prompt> is the message appearing in the dialog. <default dir> is a pathname allowing to give the default folder where the dialog opens to. Using "!", "?" and "=" as first parameter will return an online help (resp. copyright, syntax and output). USING The XFCN returns the full pathame of choosen file. An empty string is returned if the user clicked on Cancel. Although working fine with both System 6 and System 7, FullSFPack is better suited for the latter, due in part to alias handling. ERRORS If an error occurs, SelectFile can return : "Error : Missing DLOG/DITL resource(s)" "Error : Not a folder" "Error : Alias file not supported" "Error : Volume not found" "Error : Bad Name" "Error : Folder not found" "Error : AppleShare insufficient privileges" HISTORY 1.2 10/17/94 • Fixed missing resources bug with HC 2.2. 1.1 03/11/92 • Added default dir parameter 1.0 07/17/92 • First public release -------------------------------------------------------------------- All externals included in this stack are FreeWare and may be used in non-commercial software provided the following notice is visibly present : SelectFile XFCN, © Frederic Rinaldi, 1989…1993. Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses: AppleLink: RINALDI1 CalvaCom : FR10 Compuserve : 71170,2111 Internet : RINALDI1@APPLELINK.APPLE.COM